﻿
@using (Ajax.BeginForm("ListPartialView", "Mail", Html.ViewContext.RouteData.Values, new AjaxOptions
    {
        HttpMethod = "POST",
        UpdateTargetId = "list-car",
        InsertionMode = System.Web.Mvc.Ajax.InsertionMode.Replace
    }))
    { 
        @UserQuery.CreateQuery(setting => {
       setting.QueryKey = QuerySettings.MailList;
       setting.Columns.Add(new QueryColumn() { Field = "note", Name = "内容" });
       setting.Columns.Add(new QueryColumn() { Field = "send_time", Name = "发送时间", DataType= TypeofQueryColumn.Date });
        })
}
<div id="list-car">
    @Html.Action("ListPartialView")
</div>
